// @ts-nocheck
import * as http from '@/tools/http'

/**
 * 导入主机表
 * */
export async function importHost(params: object) {
  return http.post('/api/network/importHost', params)
}

/**
 * 下载主机表样例
 * */
export async function downloadHost(params: object) {
  return http.get('/api/network/downloadHost', params)
}

/**
 * 查询主机
 * */
export async function getHosts(params: object) {
  return http.get('/api/network/host', params)
}

/**
 * 新增主机
 * */
export async function createHost(params: object) {
  return http.post('/api/network/host', params)
}

/**
 * 修改主机
 * */
export async function modifyHost(params: object) {
  return http.put('/api/network/host', params)
}

/**
 * 删除主机
 * */
export async function delHost(params: object) {
  return http.del('/api/network/host', params)
}
